// stores/selectedSourceStore.ts
import { defineStore } from "pinia";

export const useSelectedSourceStore = defineStore("selectedSourceStore", {
  state: () => ({
    selectedSourceId: "" as string, // Initial value for selectedSourceId
    title: "" as string, // Initial value for title
  }),
  actions: {
    setSelectedSourceId(id: string) {
      this.selectedSourceId = id;
    },
    setTitle(title: string) {
      this.title = title;
    },
  },
});
